package com.buba;

import com.buba.mapper.VendorMapper;
import com.buba.pojo.LgUser;
import com.buba.pojo.Vendor;
import org.apache.commons.io.input.ReaderInputStream;
import org.apache.poi.ss.formula.functions.T;
import org.junit.Test;
import org.junit.experimental.theories.suppliers.TestedOn;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.BufferedReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;

//@RunWith(SpringRunner.class)
@SpringBootTest
public class TeseOne {

    @Autowired
    private VendorMapper vendorMapper;

    @Test
    public void TestVendor() {
//        Vendor vendor = new Vendor();
//        vendor.setReviewStatus("0");
//        vendorMapper.insert(vendor);

        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(6);
        list.add(7);
        list.add(8);
        list.add(9);
        list.add(10);
        //List<Integer> collect = list.stream().filter(value -> value % 2 == 0).collect(Collectors.toList());
//        System.out.println(collect);
//        list.removeIf(value -> value % 2 != 0);
//        System.out.println(list);
    }

    private void suibian(Function<T,LgUser> lgUserTFunction){
        System.out.println(lgUserTFunction);
    }

}